<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./js/vue2.js"></script>
</head>
<body>
    <div id="app">
        <first></first>
    </div>
    
</body>
<script>    
    Vue.component('first',{
        template:'<div><h1>我是第一个全局组件</h1><button>按钮</button></div>' 
        
    })
    var vm = new Vue({
        el:'#app',
        data:{

        }
    })
</script>
</html>